import { request } from '@/utils/request';

import { CompanyItem, MenuItem } from './model';

export function getMenuList() {
  return request.get<MenuItem[]>({
    url: `/platform/s/userMenuOperateTree`,
  });
}

/**
 * 查询当前用户的组织机构
 * @param params
 * @returns
 */
export function companySelect() {
  return request.get<CompanyItem[]>({
    url: '/platform/companySelects',
  });
}
